if(MSVC)
	
	SET(ChOR_RTTI_FLAG "/GR-")
	IF(DEFINED ChOR_ENABLE_CPP_RTTI)
		SET(ChOR_RTTI_FLAG "")
	ENDIF(DEFINED ChOR_ENABLE_CPP_RTTI)

	SET(C_RUNTIME_FLAG "/MT")	
	
	set(MSVC_WARNING_DISABLE_FLAGS "/wd4800 /wd4251")
	# C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
	# C4251: 'member' : class 'type' needs to have dll-interface to be used by clients of class 'usertype'
    set(CMAKE_CXX_FLAGS_DEBUG			"${MSVC_WARNING_DISABLE_FLAGS} /D_DEBUG ${C_RUNTIME_FLAG}d /Zi /Ob0 /Od /Gm /EHsc /RTC1")
    set(CMAKE_CXX_FLAGS_MINSIZEREL		"${MSVC_WARNING_DISABLE_FLAGS} ${C_RUNTIME_FLAG} /O1 /GF /FD /MT /Gy ${ChOR_RTTI_FLAG} /DNDEBUG")
    set(CMAKE_CXX_FLAGS_RELEASE			"${MSVC_WARNING_DISABLE_FLAGS} ${C_RUNTIME_FLAG} /O2 /GF /FD /MT /Gy ${ChOR_RTTI_FLAG} /fp:precise /DNDEBUG /Zi")
    set(CMAKE_CXX_FLAGS_RELWITHDEBINFO	"${MSVC_WARNING_DISABLE_FLAGS} ${C_RUNTIME_FLAG} /O2 /GF /FD /MT /Gy ${ChOR_RTTI_FLAG} /fp:precise /DNDEBUG /Zi")
else()
	message("*** Unknow compiler for compile flags")
endif()
